Skip to content

feat(mention): @ 引用按共同历史自动选投影 - #56

Open
qiankunli wants to merge 1 commit into
mainfrom
feat/mention-related-inject
Open

feat(mention): @ 引用按共同历史自动选投影#56
qiankunli wants to merge 1 commit into
mainfrom
feat/mention-related-inject

Conversation

@qiankunli

Copy link
Copy Markdown
Collaborator

同一 fork 树(有共同历史)的会话被 @ 引用时,注入共享水位之后的
全部 turn(不做预算截断,共享前缀不重复);无共同历史的会话维持
原有 4KB 预算摘要注入。用户无需在 summary/transcript 之间做选择。

  • mention.ts 新增 sharedHistoryWatermark:沿 forkedFrom 链找共同
    祖先,取沿途 throughSeq running-min 的较小者作为共同历史水位
  • buildSessionContext 增加 fromSessionId 选项,按关系选投影
  • expandMentions 增加 currentSessionId 参数;TUI/CLI 调用点传入
  • 新增水位计算与两种投影路径的测试

同一 fork 树(有共同历史)的会话被 @ 引用时,注入共享水位之后的
全部 turn(不做预算截断,共享前缀不重复);无共同历史的会话维持
原有 4KB 预算摘要注入。用户无需在 summary/transcript 之间做选择。

- mention.ts 新增 sharedHistoryWatermark:沿 forkedFrom 链找共同
  祖先,取沿途 throughSeq running-min 的较小者作为共同历史水位
- buildSessionContext 增加 fromSessionId 选项,按关系选投影
- expandMentions 增加 currentSessionId 参数;TUI/CLI 调用点传入
- 新增水位计算与两种投影路径的测试
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants